.class public Les/xj;
.super Ljava/lang/Object;
.source "NativeTool.java"


# direct methods
.method private static declared-synchronized a(Z)Landroid/net/LocalSocket;
    .locals 9

    const-class v0, Les/xj;

    monitor-enter v0

    .line 6
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->d()Ljava/lang/String;

    move-result-object v1

    .line 7
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "files/comm/tool_port"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 8
    new-instance v3, Landroid/net/LocalSocketAddress;

    sget-object v4, Landroid/net/LocalSocketAddress$Namespace;->ABSTRACT:Landroid/net/LocalSocketAddress$Namespace;

    invoke-direct {v3, v2, v4}, Landroid/net/LocalSocketAddress;-><init>(Ljava/lang/String;Landroid/net/LocalSocketAddress$Namespace;)V

    .line 9
    new-instance v4, Landroid/net/LocalSocket;

    invoke-direct {v4}, Landroid/net/LocalSocket;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v5, 0x0

    .line 10
    :try_start_1
    invoke-virtual {v4, v3}, Landroid/net/LocalSocket;->connect(Landroid/net/LocalSocketAddress;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-object v4, v5

    :goto_0
    const/4 v3, 0x0

    if-eqz v4, :cond_2

    .line 11
    :try_start_2
    invoke-virtual {v4}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v6

    .line 12
    invoke-virtual {v4}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v7

    const/16 v8, 0x50

    .line 13
    invoke-static {v6, v8}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 14
    :try_start_3
    invoke-static {v7}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v7
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_1

    :catch_1
    const/16 v7, 0x29

    :goto_1
    const/16 v8, 0x2b

    if-eq v7, v8, :cond_1

    const/16 v7, 0x64

    .line 15
    :try_start_4
    invoke-static {v6, v7}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 16
    invoke-virtual {v4}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 17
    :catch_2
    :try_start_5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;)Z

    move-result v4

    if-eqz v4, :cond_0

    if-eqz p0, :cond_0

    .line 18
    invoke-static {v1, v2}, Les/xj;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    invoke-static {v3}, Les/xj;->a(Z)Landroid/net/LocalSocket;

    move-result-object p0
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    monitor-exit v0

    return-object p0

    .line 20
    :cond_0
    monitor-exit v0

    return-object v5

    .line 21
    :cond_1
    monitor-exit v0

    return-object v4

    .line 22
    :catch_3
    monitor-exit v0

    return-object v5

    :cond_2
    if-nez p0, :cond_3

    .line 23
    monitor-exit v0

    return-object v5

    .line 24
    :cond_3
    :try_start_6
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->m()Z

    move-result p0

    if-eqz p0, :cond_4

    .line 25
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;)Z

    move-result p0
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    if-nez p0, :cond_4

    .line 26
    monitor-exit v0

    return-object v5

    .line 27
    :cond_4
    :try_start_7
    invoke-static {v1, v2}, Les/xj;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 28
    invoke-static {v3}, Les/xj;->a(Z)Landroid/net/LocalSocket;

    move-result-object p0
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_4
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    monitor-exit v0

    return-object p0

    .line 29
    :catch_4
    monitor-exit v0

    return-object v5

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static a()V
    .locals 2

    .line 61
    :try_start_0
    new-instance v0, Ljava/io/File;

    const-string v1, "/data/data/com.estrongs.android.pop/files/skip_auth"

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 62
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 63
    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method private static a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    const/4 v0, 0x3

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    aput-object p0, v0, v1

    const-string v1, "39623"

    const/4 v2, 0x1

    aput-object v1, v0, v2

    const/4 v1, 0x2

    aput-object p1, v0, v1

    .line 1
    new-instance p1, Ljava/lang/ProcessBuilder;

    invoke-direct {p1, v0}, Ljava/lang/ProcessBuilder;-><init>([Ljava/lang/String;)V

    .line 2
    invoke-virtual {p1, v2}, Ljava/lang/ProcessBuilder;->redirectErrorStream(Z)Ljava/lang/ProcessBuilder;

    .line 3
    :try_start_0
    new-instance v0, Ljava/io/File;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v0}, Ljava/lang/ProcessBuilder;->directory(Ljava/io/File;)Ljava/lang/ProcessBuilder;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 4
    :catch_0
    :try_start_1
    invoke-virtual {p1}, Ljava/lang/ProcessBuilder;->start()Ljava/lang/Process;

    const-wide/16 p0, 0x7d0

    .line 5
    invoke-static {p0, p1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :catch_1
    return-void
.end method

.method public static a(Landroid/net/LocalSocket;)Z
    .locals 3

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return v0

    .line 57
    :cond_0
    :try_start_0
    invoke-virtual {p0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v1

    .line 58
    invoke-virtual {p0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object p0

    const/16 v2, 0x2715

    .line 59
    invoke-static {v1, v2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 60
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez p0, :cond_1

    const/4 v0, 0x1

    :catch_0
    :cond_1
    return v0
.end method

.method public static a(Landroid/net/LocalSocket;Ljava/lang/String;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-eqz p0, :cond_2

    .line 30
    invoke-virtual {p0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v0

    .line 31
    invoke-virtual {p0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object p0

    const/16 v1, 0xcd

    .line 32
    invoke-static {v0, v1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 33
    invoke-static {v0, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 34
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p1

    if-ltz p1, :cond_1

    .line 35
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0

    .line 36
    :cond_1
    new-instance p0, Ljava/io/IOException;

    const-string p1, "File IO errors"

    invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 37
    :cond_2
    new-instance p0, Ljava/io/IOException;

    const-string p1, "Failed to connect estools"

    invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/local/NativeException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 38
    invoke-static {p0, v0, v0}, Les/xj;->a(Ljava/lang/String;ZZ)Z

    move-result p0

    return p0
.end method

.method private static a(Ljava/lang/String;ZZ)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/local/NativeException;
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return v0

    :cond_0
    if-eqz p2, :cond_1

    const/4 p2, 0x2

    goto :goto_0

    :cond_1
    const/4 p2, 0x3

    .line 39
    :goto_0
    invoke-static {p0, p1}, Lcom/estrongs/android/util/h0;->d(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object p0

    if-nez p0, :cond_2

    return v0

    .line 40
    :cond_2
    invoke-static {}, Les/xj;->b()Landroid/net/LocalSocket;

    move-result-object p1

    if-nez p1, :cond_3

    return v0

    :cond_3
    const/4 v1, 0x0

    .line 41
    :try_start_0
    invoke-virtual {p1}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 42
    :try_start_1
    invoke-virtual {p1}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v1

    .line 43
    invoke-static {v1, p2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 44
    invoke-static {v1, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 45
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-nez p0, :cond_6

    const/4 p0, 0x1

    if-eqz v2, :cond_4

    .line 46
    :try_start_2
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_4
    if-eqz v1, :cond_5

    .line 47
    invoke-virtual {v1}, Ljava/io/OutputStream;->close()V

    .line 48
    :cond_5
    invoke-virtual {p1}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    return p0

    :catch_0
    return v0

    .line 49
    :cond_6
    :try_start_3
    new-instance p2, Lcom/estrongs/fs/impl/local/NativeException;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/h;->a(I)Ljava/lang/String;

    move-result-object p0

    invoke-direct {p2, p0}, Lcom/estrongs/fs/impl/local/NativeException;-><init>(Ljava/lang/String;)V

    throw p2
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_0
    move-exception p0

    move-object p2, v1

    move-object v1, v2

    goto :goto_1

    :catch_1
    move-object p0, v1

    move-object v1, v2

    goto :goto_2

    :catchall_1
    move-exception p0

    move-object p2, v1

    :goto_1
    if-eqz v1, :cond_7

    .line 50
    :try_start_4
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz p2, :cond_8

    .line 51
    invoke-virtual {p2}, Ljava/io/OutputStream;->close()V

    .line 52
    :cond_8
    invoke-virtual {p1}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2

    .line 53
    throw p0

    :catch_2
    return v0

    :catch_3
    move-object p0, v1

    :goto_2
    if-eqz v1, :cond_9

    .line 54
    :try_start_5
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_9
    if-eqz p0, :cond_a

    .line 55
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 56
    :cond_a
    invoke-virtual {p1}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4

    :catch_4
    return v0
.end method

.method public static b()Landroid/net/LocalSocket;
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-static {v0}, Les/xj;->a(Z)Landroid/net/LocalSocket;

    move-result-object v0

    return-object v0
.end method

.method public static b(Ljava/lang/String;)Les/wj;
    .locals 7

    .line 2
    invoke-static {}, Les/xj;->b()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 3
    :cond_0
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 4
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    const/16 v4, 0x2711

    .line 5
    :try_start_2
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 6
    invoke-static {v3, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 7
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_6
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v4, :cond_3

    if-eqz v2, :cond_1

    .line 8
    :try_start_3
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_1
    if-eqz v3, :cond_2

    .line 9
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 10
    :cond_2
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    :catch_0
    return-object v1

    .line 11
    :cond_3
    :try_start_4
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4

    .line 12
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v5
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_6
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 13
    :try_start_5
    new-instance v6, Les/wj;

    invoke-direct {v6, v0, v4, v5}, Les/wj;-><init>(Landroid/net/LocalSocket;II)V

    .line 14
    iput-object p0, v6, Les/wj;->b:Ljava/lang/String;

    .line 15
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I
    :try_end_5
    .catch Ljava/lang/OutOfMemoryError; {:try_start_5 .. :try_end_5} :catch_1
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_6
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    return-object v6

    :catch_1
    if-eqz v2, :cond_4

    .line 16
    :try_start_6
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_4
    if-eqz v3, :cond_5

    .line 17
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 18
    :cond_5
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_2

    :catch_2
    return-object v1

    :catchall_0
    move-exception p0

    goto :goto_0

    :catchall_1
    move-exception p0

    move-object v3, v1

    goto :goto_0

    :catch_3
    move-object v3, v1

    goto :goto_1

    :catchall_2
    move-exception p0

    move-object v2, v1

    move-object v3, v2

    :goto_0
    if-eqz v2, :cond_6

    .line 19
    :try_start_7
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_6
    if-eqz v3, :cond_7

    .line 20
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 21
    :cond_7
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_4

    .line 22
    throw p0

    :catch_4
    return-object v1

    :catch_5
    move-object v2, v1

    move-object v3, v2

    :catch_6
    :goto_1
    if-eqz v2, :cond_8

    .line 23
    :try_start_8
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_8
    if-eqz v3, :cond_9

    .line 24
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 25
    :cond_9
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_7

    :catch_7
    return-object v1
.end method

.method public static c(Ljava/lang/String;)Z
    .locals 6

    .line 1
    invoke-static {}, Les/xj;->b()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    :cond_0
    const/4 v2, 0x0

    const/4 v3, 0x1

    .line 2
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v4
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 3
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v2

    const/16 v5, 0x2716

    .line 4
    invoke-static {v2, v5}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 5
    invoke-static {v2, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 6
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-ne p0, v3, :cond_3

    if-eqz v4, :cond_1

    .line 7
    :try_start_2
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_1
    if-eqz v2, :cond_2

    .line 8
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 9
    :cond_2
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    return v3

    :cond_3
    if-eqz v4, :cond_4

    .line 10
    :try_start_3
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_4
    if-eqz v2, :cond_5

    .line 11
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 12
    :cond_5
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1

    return v1

    :catch_1
    return v3

    :catchall_0
    move-exception p0

    move-object v1, v2

    move-object v2, v4

    goto :goto_0

    :catch_2
    move-object p0, v2

    move-object v2, v4

    goto :goto_1

    :catchall_1
    move-exception p0

    move-object v1, v2

    :goto_0
    if-eqz v2, :cond_6

    .line 13
    :try_start_4
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_6
    if-eqz v1, :cond_7

    .line 14
    invoke-virtual {v1}, Ljava/io/OutputStream;->close()V

    .line 15
    :cond_7
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3

    .line 16
    throw p0

    :catch_3
    return v3

    :catch_4
    move-object p0, v2

    :goto_1
    if-eqz v2, :cond_8

    .line 17
    :try_start_5
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_8
    if-eqz p0, :cond_9

    .line 18
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 19
    :cond_9
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_5

    :catch_5
    return v3
.end method
